package com.petshop.service;

import java.util.List;

import com.petshop.dao.UserProfileDao;
import com.petshop.dao.UserProfileDaoImpl;
import com.petshop.model.User;

public class UserProfileServiceImpl implements UserProfileService {

	@Override
	public List<User> getAllUserList() {
		
		UserProfileDao userProfileDao = new UserProfileDaoImpl();
		List<User> userProfiles = userProfileDao.getUserProfileList();
		
		return userProfiles;
	}

	@Override
	public Integer checkUserNamePassword(String username, String password) {
		
		UserProfileDao userProfileDao = new UserProfileDaoImpl();
		Integer isActive = userProfileDao.checkUserNamePassword(username, password);
		
		return isActive;
	}
	
}
